Integrand size = 14, antiderivative size = 91 \[ \int \frac {\cos ^3\left (a+b x^2\right )}{x^3} \, dx=-\frac {3 \cos \left (a+b x^2\right )}{8 x^2}-\frac {\cos \left (3 \left (a+b x^2\right )\right )}{8 x^2}-\frac {3}{8} b \operatorname {CosIntegral}\left (b x^2\right ) \sin (a)-\frac {3}{8} b \operatorname {CosIntegral}\left (3 b x^2\right ) \sin (3 a)-\frac {3}{8} b \cos (a) \text {Si}\left (b x^2\right )-\frac {3}{8} b \cos (3 a) \text {Si}\left (3 b x^2\right ) \]
[Out]
Time = 0.23 (sec) , antiderivative size = 91, normalized size of antiderivative = 1.00, number of steps used = 12, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.429, Rules used = {3485, 3461, 3378, 3384, 3380, 3383} \[ \int \frac {\cos ^3\left (a+b x^2\right )}{x^3} \, dx=-\frac {3}{8} b \sin (a) \operatorname {CosIntegral}\left (b x^2\right )-\frac {3}{8} b \sin (3 a) \operatorname {CosIntegral}\left (3 b x^2\right )-\frac {3}{8} b \cos (a) \text {Si}\left (b x^2\right )-\frac {3}{8} b \cos (3 a) \text {Si}\left (3 b x^2\right )-\frac {3 \cos \left (a+b x^2\right )}{8 x^2}-\frac {\cos \left (3 \left (a+b x^2\right )\right )}{8 x^2} \]
[In]
[Out]
Rule 3378
Rule 3380
Rule 3383
Rule 3384
Rule 3461
Rule 3485
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {3 \cos \left (a+b x^2\right )}{4 x^3}+\frac {\cos \left (3 a+3 b x^2\right )}{4 x^3}\right ) \, dx \\ & = \frac {1}{4} \int \frac {\cos \left (3 a+3 b x^2\right )}{x^3} \, dx+\frac {3}{4} \int \frac {\cos \left (a+b x^2\right )}{x^3} \, dx \\ & = \frac {1}{8} \text {Subst}\left (\int \frac {\cos (3 a+3 b x)}{x^2} \, dx,x,x^2\right )+\frac {3}{8} \text {Subst}\left (\int \frac {\cos (a+b x)}{x^2} \, dx,x,x^2\right ) \\ & = -\frac {3 \cos \left (a+b x^2\right )}{8 x^2}-\frac {\cos \left (3 \left (a+b x^2\right )\right )}{8 x^2}-\frac {1}{8} (3 b) \text {Subst}\left (\int \frac {\sin (a+b x)}{x} \, dx,x,x^2\right )-\frac {1}{8} (3 b) \text {Subst}\left (\int \frac {\sin (3 a+3 b x)}{x} \, dx,x,x^2\right ) \\ & = -\frac {3 \cos \left (a+b x^2\right )}{8 x^2}-\frac {\cos \left (3 \left (a+b x^2\right )\right )}{8 x^2}-\frac {1}{8} (3 b \cos (a)) \text {Subst}\left (\int \frac {\sin (b x)}{x} \, dx,x,x^2\right )-\frac {1}{8} (3 b \cos (3 a)) \text {Subst}\left (\int \frac {\sin (3 b x)}{x} \, dx,x,x^2\right )-\frac {1}{8} (3 b \sin (a)) \text {Subst}\left (\int \frac {\cos (b x)}{x} \, dx,x,x^2\right )-\frac {1}{8} (3 b \sin (3 a)) \text {Subst}\left (\int \frac {\cos (3 b x)}{x} \, dx,x,x^2\right ) \\ & = -\frac {3 \cos \left (a+b x^2\right )}{8 x^2}-\frac {\cos \left (3 \left (a+b x^2\right )\right )}{8 x^2}-\frac {3}{8} b \operatorname {CosIntegral}\left (b x^2\right ) \sin (a)-\frac {3}{8} b \operatorname {CosIntegral}\left (3 b x^2\right ) \sin (3 a)-\frac {3}{8} b \cos (a) \text {Si}\left (b x^2\right )-\frac {3}{8} b \cos (3 a) \text {Si}\left (3 b x^2\right ) \\ \end{align*}
Time = 0.19 (sec) , antiderivative size = 90, normalized size of antiderivative = 0.99 \[ \int \frac {\cos ^3\left (a+b x^2\right )}{x^3} \, dx=-\frac {3 \cos \left (a+b x^2\right )+\cos \left (3 \left (a+b x^2\right )\right )+3 b x^2 \operatorname {CosIntegral}\left (b x^2\right ) \sin (a)+3 b x^2 \operatorname {CosIntegral}\left (3 b x^2\right ) \sin (3 a)+3 b x^2 \cos (a) \text {Si}\left (b x^2\right )+3 b x^2 \cos (3 a) \text {Si}\left (3 b x^2\right )}{8 x^2} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.97 (sec) , antiderivative size = 185, normalized size of antiderivative = 2.03
method | result | size |
risch | \(-\frac {3 i {\mathrm e}^{3 i a} b \,\operatorname {Ei}_{1}\left (-3 i b \,x^{2}\right ) x^{2}-3 i {\mathrm e}^{-i a} \operatorname {Ei}_{1}\left (-i b \,x^{2}\right ) b \,x^{2}-3 \,{\mathrm e}^{-i a} \pi \,\operatorname {csgn}\left (b \,x^{2}\right ) b \,x^{2}+3 i {\mathrm e}^{i a} b \,\operatorname {Ei}_{1}\left (-i b \,x^{2}\right ) x^{2}-3 \pi \,\operatorname {csgn}\left (b \,x^{2}\right ) {\mathrm e}^{-3 i a} b \,x^{2}-3 i {\mathrm e}^{-3 i a} \operatorname {Ei}_{1}\left (-3 i b \,x^{2}\right ) b \,x^{2}+6 \,{\mathrm e}^{-i a} \operatorname {Si}\left (b \,x^{2}\right ) b \,x^{2}+6 \,\operatorname {Si}\left (3 b \,x^{2}\right ) {\mathrm e}^{-3 i a} b \,x^{2}+6 \cos \left (b \,x^{2}+a \right )+2 \cos \left (3 b \,x^{2}+3 a \right )}{16 x^{2}}\) | \(185\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 80, normalized size of antiderivative = 0.88 \[ \int \frac {\cos ^3\left (a+b x^2\right )}{x^3} \, dx=-\frac {3 \, b x^{2} \operatorname {Ci}\left (3 \, b x^{2}\right ) \sin \left (3 \, a\right ) + 3 \, b x^{2} \operatorname {Ci}\left (b x^{2}\right ) \sin \left (a\right ) + 3 \, b x^{2} \cos \left (3 \, a\right ) \operatorname {Si}\left (3 \, b x^{2}\right ) + 3 \, b x^{2} \cos \left (a\right ) \operatorname {Si}\left (b x^{2}\right ) + 4 \, \cos \left (b x^{2} + a\right )^{3}}{8 \, x^{2}} \]
[In]
[Out]
\[ \int \frac {\cos ^3\left (a+b x^2\right )}{x^3} \, dx=\int \frac {\cos ^{3}{\left (a + b x^{2} \right )}}{x^{3}}\, dx \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.38 (sec) , antiderivative size = 98, normalized size of antiderivative = 1.08 \[ \int \frac {\cos ^3\left (a+b x^2\right )}{x^3} \, dx=\frac {3}{16} \, {\left ({\left (-i \, \Gamma \left (-1, 3 i \, b x^{2}\right ) + i \, \Gamma \left (-1, -3 i \, b x^{2}\right )\right )} \cos \left (3 \, a\right ) + {\left (-i \, \Gamma \left (-1, i \, b x^{2}\right ) + i \, \Gamma \left (-1, -i \, b x^{2}\right )\right )} \cos \left (a\right ) - {\left (\Gamma \left (-1, 3 i \, b x^{2}\right ) + \Gamma \left (-1, -3 i \, b x^{2}\right )\right )} \sin \left (3 \, a\right ) - {\left (\Gamma \left (-1, i \, b x^{2}\right ) + \Gamma \left (-1, -i \, b x^{2}\right )\right )} \sin \left (a\right )\right )} b \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 185 vs. \(2 (80) = 160\).
Time = 0.31 (sec) , antiderivative size = 185, normalized size of antiderivative = 2.03 \[ \int \frac {\cos ^3\left (a+b x^2\right )}{x^3} \, dx=-\frac {3 \, {\left (b x^{2} + a\right )} b^{2} \operatorname {Ci}\left (3 \, b x^{2}\right ) \sin \left (3 \, a\right ) - 3 \, a b^{2} \operatorname {Ci}\left (3 \, b x^{2}\right ) \sin \left (3 \, a\right ) + 3 \, {\left (b x^{2} + a\right )} b^{2} \operatorname {Ci}\left (b x^{2}\right ) \sin \left (a\right ) - 3 \, a b^{2} \operatorname {Ci}\left (b x^{2}\right ) \sin \left (a\right ) + 3 \, {\left (b x^{2} + a\right )} b^{2} \cos \left (a\right ) \operatorname {Si}\left (b x^{2}\right ) - 3 \, a b^{2} \cos \left (a\right ) \operatorname {Si}\left (b x^{2}\right ) - 3 \, {\left (b x^{2} + a\right )} b^{2} \cos \left (3 \, a\right ) \operatorname {Si}\left (-3 \, b x^{2}\right ) + 3 \, a b^{2} \cos \left (3 \, a\right ) \operatorname {Si}\left (-3 \, b x^{2}\right ) + b^{2} \cos \left (3 \, b x^{2} + 3 \, a\right ) + 3 \, b^{2} \cos \left (b x^{2} + a\right )}{8 \, b^{2} x^{2}} \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^3\left (a+b x^2\right )}{x^3} \, dx=\int \frac {{\cos \left (b\,x^2+a\right )}^3}{x^3} \,d x \]
[In]
[Out]